package com.laixu.bean;

import lombok.Data;
import org.springframework.stereotype.Component;
import java.math.BigDecimal;
import lombok.Data;

@Component
@Data
public class Book {
    private Integer id;
    private String name;
    private String cover;
    private String description;
    private String author;
    private String publisher;
    private BigDecimal price;  // 更推荐使用BigDecimal
    private Integer storeNum;
    private Integer status;
    private Integer categoryId;

    // Getters and Setters
    public Integer getId() { return id; }
    public void setId(Integer id) { this.id = id; }
    public String getName() { return name; }
    public void setName(String name) { this.name = name; }
    public String getCover() { return cover; }
    public void setCover(String cover) { this.cover = cover; }
    public String getDescription() { return description; }
    public void setDescription(String description) { this.description = description; }
    public String getAuthor() { return author; }
    public void setAuthor(String author) { this.author = author; }
    public String getPublisher() { return publisher; }
    public void setPublisher(String publisher) { this.publisher = publisher; }
    public BigDecimal getPrice() { return price; }
    public void setPrice(BigDecimal price) { this.price = price; }
    public Integer getStoreNum() { return storeNum; }
    public void setStoreNum(Integer storeNum) { this.storeNum = storeNum; }
    public Integer getStatus() { return status; }
    public void setStatus(Integer status) { this.status = status; }
    public Integer getCategoryId() { return categoryId; }
    public void setCategoryId(Integer categoryId) { this.categoryId = categoryId; }
}